//1.引入
import VueRouter from "vue-router";
import Vue from "vue";

import My from "@/components/My.vue";
import Firend from "@/components/Firend.vue";
import Find from "@/components/Find.vue";

//2.安装注册
Vue.use(VueRouter)

//3.创建s一个路由对象
const router = new VueRouter({
	routes:[
		{path:'/find', component: Find},
		{path:'/my', component: My},
		{path:'/friend', component: Firend},

	],
	//自定义高亮类名
	linkActiveClass:'active',
	linkExactActiveClass:'exact-active'
})

//4.导出
export default router

